import Vue from 'vue'
import App from './App.vue'

import './style.less'
Vue.config.productionTip = false

if('serviceWorker' in navigator) {
  window.addEventListener('load', () => {
    navigator.serviceWorker.register('/service-worker.js').then(() => {
      console.log('sw注册成功')
    }).catch(() => {
      console.log('sw注册失败')
    })
  })
}

new Vue({
  render: h => h(App),
}).$mount('#app')
